#! /usr/bin/env python
#coding:utf-8
__author__ = 'guolt'

import shutil,os

dir='/u01/cdnLog/cdn_tmp/test'

if os.path.exists(dir):
    if len(os.listdir(dir)) != 0:
        print "del dir....."
        shutil.rmtree(dir)
    else:
        print "dir have data..."


